package Object_2;

import java.util.Arrays;

import static java.util.Arrays.sort;

public class Student_2 {
    private String name;
    private int Id;
    private double score;

    public Student_2(String name, int id, double score) {
        this.name = name;
        Id = id;
        this.score = score;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public static void main(String[] args) {
        Student_2 s1 = new Student_2("张三",1,90.38);
        Student_2 s2 = new Student_2("李四",2,90.39);
        Student2_Comparator student2Comparator = new Student2_Comparator();
        System.out.println( student2Comparator.compare(s1,s2) );

    }
}
